
reset

set grid
unset mouse
set terminal x11 persist
#set terminal postscript color
#pngset terminal png

set key left
set xlabel "RSA key size in bits (exponent size according to Lenstra)"
set xrange [ 450 : 2100 ]
set xtics 512,128
set yrange [0 : ]
set ylabel "time in minutes"

#f1(x) = a1*x**3 + b1*x**1 + c1*x + d1
#f2(x) = a2*x**3 + b2*x**2 + c2*x + d2
#FIT_LIMIT = 1e-6


set title "Basic OV Chip protocols, RSA variant (4 bases, wireless, RSA + Montgomery)"

set pointsize 1.5
#pngset pointsize 1

plot \
     "test-size-h3-wireless.resign-data" using 2:($9 / 60) \
	t 'resigning, step 1', \
     "test-size-h3-wireless.resign-data" using 2:($10 / 60) \
	t 'resigning, step 2', \
     "test-size-h3-wireless.resign-data" using 2:($5 / 60) \
	t 'resigning, total time', \
     "test-size-h3-wireless.gate-data" using 2:($8 / 60) \
	t 'prove, step 1', \
     "test-size-h3-wireless.gate-data" using 2:($9 / 60) \
	t 'prove, step 2', \
     "test-size-h3-wireless.gate-data" using 2:($5 / 60) \
	t 'prove, total time'

